package com.pro.staffmanage.mapper;

import com.pro.staffmanage.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: Haotian Cui
 * @Date: 2022/7/29 - 07 - 29 - 21:27
 * @Description: com.pro.staffmanage.mapper
 * @Project: staffmanage
 * @version: 1.0
 */
@Repository
@Mapper
public interface DepartmentMapper {

    List<Department> queryAllDepartment();

    Department queryDepartmentById(Integer id);

    Integer addDepartment(Department department);

    Integer updateDepartment(Department department);

    Integer deleteDepartment(Integer id);

}
